package com.wondertek.poms.core.service.impl;

import com.wondertek.poms.common.service.impl.ServiceImpl;
import com.wondertek.poms.core.service.IPlaybillService;
import com.wondertek.poms.dao.po.Playbill;
import com.wondertek.poms.dao.repo.IPlaybillDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PlaybillServiceImpl extends ServiceImpl<Playbill,Long> implements IPlaybillService {

    @Autowired
    private IPlaybillDao playbillDao;

    @Override
    public Playbill deleteLogic(Long id) {
        return null;
    }

    @Override
    public Playbill merge(Playbill model) {
        return null;
    }

    @Override
    public List<Playbill> findByContId(String contentId) {
        List<Playbill> list=playbillDao.findAllByContentId(contentId);
        return list;
    }

    @Override
    public void deleteAll(String contentId) {
        playbillDao.deleteAllByContentId(contentId);
    }
}
